<template>
  <div class="public-header">
    <div class="addmemo">
      <el-input
        placeholder="请输入角色名称"
        v-model="adminName"
        class="input-with-select"
      >
        <el-button
          slot="append"
          icon="el-icon-search"
          class="search"
          @click="searchData"
        ></el-button>
      </el-input>
      <el-button
        type="success"
        icon="el-icon-plus"
        class="add-btn"
        size="medium"
        @click="addData"
        >增加</el-button
      >
    </div>
  </div>
</template>
<script>
export default {
  name: "subTableItem_header",
  components: {},
  data() {
    return {
      adminName: "",
    };
  },
  methods: {
    searchData() {
      this.$emit("searchData", this.adminName);
    },
    addData() {
      this.$emit("addData");
    },
  },
  computed: {},
  watch: {},
};
</script>
<style lang="less" scoped>
.public-header {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  //   padding: 0 32px;
  box-sizing: border-box;
}
.addmemo {
  display: flex;
  width: 100%;
  justify-content: space-between;

  .el-input {
    width: 40%;
    margin-right: 32px;
  }
  .el-input /deep/ .el-input__inner {
    &:focus {
      border: 1px solid #4091ff;
    }
  }
  .search {
    background-color: #4091ff;
    color: #fff;
    border-radius: 0 4px 4px 0;
    border: 1px solid #4091ff;
  }
  .add-btn {
    padding: 0 12px !important;
    height: 36px;
  }
}
</style>
